package com.it.data_linkedList.ring_linked;

/**
 * @Author: CaoYouGen
 * @DateTime: 2023/05/17/10:33
 * @注释: 环形链表节点类
 **/
public class RingNode<T> {
    public T data;           // 值
    public RingNode<T> prev; // 上一个节点
    public RingNode<T> next; // 下一个节点

    public RingNode(T data, RingNode<T> prev, RingNode<T> next) {
        this.data = data;
        this.prev = prev;
        this.next = next;
    }

    public RingNode() {
    }
}
